import { App } from 'vue';
import { ScheduleTable, ScheduleToolbar } from './components';
import type {
  IGlobalConfig,
  IScheduleResource,
  IScheduleTask,
} from './interface';

export type { IGlobalConfig, IScheduleResource, IScheduleTask };
export { ScheduleTable };

export default {
  install(app: App): void {
    // 自定义插件注入
    app.component(ScheduleToolbar.name!, ScheduleToolbar);
    app.component(ScheduleTable.name!, ScheduleTable);
  },
};
